package team.bluepen.supermarket.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import team.bluepen.supermarket.entity.dto.UserLoginRequest;
import team.bluepen.supermarket.service.impl.UserInfoServiceImpl;

import java.util.Map;

/**
 * @author 狗崽
 */
@RestController
@RequestMapping("/user/account")
public class GetUserInfoController {

    @Autowired
    private UserInfoServiceImpl userInfoService;

    @PostMapping("/getInfo/")
    public Map<String,String> getInfo(){
       return userInfoService.getInfo();
    }
}
